<%@page pageEncoding="utf-8" contentType="text/html; charset=utf-8"%>
<%@taglib prefix="s" uri="strutsTags"%>
<!--begin: 上传文件div -->
<div id="divResumeFileUpload"
	style="position: absolute; left: 350px; top: 120px; z-index: 5; solid; width: 500px; display: none;"
	class="prompt_div_inline">
	<form id="formResumeFileUpload" name="formResumeFileUpload" action="resumeFileUpload.action" method="POST" enctype="multipart/form-data" onSubmit="return uploadResumeCheck();">
	<div id="divResumeFileUploadHead" style="CURSOR: move; height: 25px;"
		class="prompt_div_head">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td><h3>批量简历附件上传</h3></td>
				<td align="right" valign="middle"><img
					src="../resource/images/close_div.gif"
					onclick="$('#divResumeFileUpload').hide();" style="CURSOR: pointer" /></td>
			</tr>
		</table>
	</div>
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr><td colspan="2" align="center">&nbsp;</td></tr>
		
	<tr><td align="right">单个简历附件名格式:</td><td colspan="2">“姓名（电话）_简历编号”。支持51job、chinaHR附件上传。</td></tr>
	<tr><td align="right"><font color="red">注意:</font></td><td colspan="2"><font color="red">（上传文件最大为10M，目前上传类型只支持.zip）</font></td></tr>
	<tr><td colspan="2" align="center">&nbsp;</td></tr>
		<tr>
			<s:file label="上传批量简历"  id="resume"  name="resume"  size="30" accept="text/zip,text/rar" onchange="checkFileType();"/>
		</tr>
		<tr><td colspan="2" align="center">&nbsp;</td></tr>
		<tr>
			<td colspan="2" align="center">
				<input type="submit" value="上传" class="button" />
				<input class="button" type="button" value="取消" onclick="$('#divResumeFileUpload').hide();"/>
			</td>
		</tr>
		<tr><td colspan="2" align="center">&nbsp;</td></tr>
	</table>
	</form>
</div>
<!--end: 上传文件div -->
<script type="text/javascript" language="javascript">
	invoke_drag("divResumeFileUploadHead", "divResumeFileUpload");
	//初始化上传文件div
	function initDivFileUpload() {
			$('#divResumeFileUpload').show();
	}
	function uploadResumeCheck(){
		$('#divResumeFileUpload').hide();
		$('#divWait').show();
		return true;
	}
	
	function checkFileType(){
		var fileName=$("#resume").val();
		if(!fileName){
			alert("请上传文件!");
			return false;
		}
		if(fileName.substring(fileName.length-3,fileName.length)!="zip") {
			alert("请上传zip格式的文件!"); 
			$('#resume').val('');
			return false;
		}
	}
</script>
<jsp:include page="../sitemesh/div_wait.jsp" flush="true"></jsp:include>